﻿using BeetleX.Buffers;
using System;

#nullable disable
namespace BeetleX.XRPC.Packets
{
    public interface IParameterFormater
    {
        void Encode(Options rpcOption, object data, PipeStream stream);

        object Decode(Options rpcOption, Type type, ArraySegment<byte> data);
    }
}
